﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using VideoSpider.Module.Request;
using VideoSpider.Module.SQLManager;

namespace VideoSpider
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            XJNetworkRequest request = new XJNetworkRequest("http://www.baidu.com");
            request.requestDelegate = new XJNetworkRequest.RequestDelegate(this.RequestCallback);
            request.Start();

            MySqlManager mysqlManager = new MySqlManager();
            mysqlManager.userName = "root";
            mysqlManager.password = "";
            mysqlManager.host = "127.0.0.1";
            mysqlManager.dataSourceName = "feifeicms";
            mysqlManager.port = "3306";
            mysqlManager.Connection();
        }

        private void RequestCallback(XJNetworkRequest request, string result)
        {
            
        }
    }
}
